package com.yxc.elasticsearchdemo.entiey;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author: 杨旭晨
 * @time: 2022/6/22 16:49
 **/

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
//@Document(indexName = "demo")
@Document(indexName = "new-client-test1")
public class EsDemoEntityCopy {

    @Field(type = FieldType.Text, store = true)
    private String cId;

    @Field(type = FieldType.Text, store = true)
    private String cName;

    @Field(type = FieldType.Long, store = true)
    private Long cTime;

    @Field(type = FieldType.Text, store = true)
    private String cValue;

}
